package com.voxel.sense.infomsg.utils.manager;

import android.content.Context;
import android.os.Vibrator;

import com.voxel.sense.infomsg.App;

/**
 * Created by ChenYiYao on 2018/1/2.
 */

public class NewMsgTipManager {
    private static NewMsgTipManager instance;

    private NewMsgTipManager() {
    }

    public static NewMsgTipManager getInstance() {
        if (instance == null) {
            synchronized (NewMsgTipManager.class) {
                if (instance == null) {
                    instance = new NewMsgTipManager();
                }
            }
        }

        return instance;
    }


    public void vibratorTip(){
        Vibrator vibrator = (Vibrator) App.getInstance().getSystemService(Context.VIBRATOR_SERVICE);
        vibrator.vibrate(new long[]{0, 1000, 1000}, -1);
    }
}
